package com.sasis.service.impl;
import java.util.List;

import com.sasis.dao.FuncListDAO;
import com.sasis.model.FuncList;
import com.sasis.service.FuncInfoService;


public class FuncInfoServiceImpl implements FuncInfoService{
	private FuncListDAO funcListDao;
	
	public FuncListDAO getFuncListDao() {
		return funcListDao;
	}
	
	public void setFuncListDao(FuncListDAO funcListDao) {
		this.funcListDao=funcListDao;
	}
	
	public int delete(FuncList funcList) {
		// TODO Auto-generated method stub
		
		return funcListDao.deleteByPrimaryKey(funcList);
	}

	public List getAllFunction() {
		// TODO Auto-generated method stub
		//System.out.println("FuncInfoServiceImpl....");
		return funcListDao.select();
	}

	public FuncList getFunctionById(FuncList funcList) {
		// TODO Auto-generated method stub
		System.out.println("......FuncInfoServiceImpl......");
		return funcListDao.selectByPrimaryKey(funcList);
	}

	public int insert(FuncList funcList) {
		// TODO Auto-generated method stub
		return funcListDao.insert(funcList);
	}

	public int update(FuncList funcList) {
		// TODO Auto-generated method stub
		return funcListDao.updateByPrimaryKey(funcList);
	}

	

}
